<?php
namespace app\finance\model;

use think\Model;
use think\Db;

class BankInterturn extends Model
{
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    public function getAAccountTextAttr($value)
    {
    	$name = Db::name('account')->where('id', $value)->value('name');
    	return $name;
    }

    public function getBAccountTextAttr($value)
    {
    	$name = Db::name('account')->where('id', $value)->value('name');
    	return $name;
    }
} 